$(function () {

    $("[name='ejzh.nbgs.id']").gsjgtree('1', {
        onChange: function (newValue, oldValue) {
            $("#ejzh_khh_id").combobox({
                url: $.webPath() + "/organ/khh/findKhhByNbgsId?nbgsId=" + newValue
            });
        }
    });
    $("#ejzh_kh_id").gsjgqczcombobox({
        onSelect: function (record) {
            $("#ejzhqc").val(record.qc);
            $("#ejzhjc").val(record.qc);
        },
        onSuccess: function () {
            $("#ejzh_kh_id").zcombobox("setMap", { id: $("#ejzh_khId").val(), qc: $("#ejzh_khQc").val()});
        }
    });

    var ejzhId = $("#ejzh_id").val();
    if (ejzhId) {
        $("#ejzh_khh_id").combobox({
            url: $.webPath() + "/organ/khh/findKhhByEjzhId?ejzhId=" + ejzhId
        });
    }


})